import type { KPIType } from './type'
import { PAGING } from '@/constant'

export const defaultFormData: KPIType = {
  team: '',
  time: '',
  assessment: '',
  currentValue: 0,
}

export const formRules = {
  team: [
    {
      required: true,
      message: '不能为空！',
      trigger: 'change',
    },
  ],
  time: [
    {
      required: true,
      message: '不能为空！',
      trigger: 'change',
    },
  ],
  assessment: [
    {
      required: true,
      message: '不能为空！',
      trigger: 'change',
    },
  ],
  currentValue: [
    {
      required: true,
      message: '不能为空！',
      trigger: 'change',
    },
  ],
}

export const defaultPagingParams: any = {
  ...PAGING.PARAMS,
  name: '',
}
